package com.atguigu.lease.web.admin.service;

import com.atguigu.lease.model.entity.RoomInfo;
import com.atguigu.lease.web.admin.vo.room.RoomDetailVo;
import com.atguigu.lease.web.admin.vo.room.RoomItemVo;
import com.atguigu.lease.web.admin.vo.room.RoomQueryVo;
import com.atguigu.lease.web.admin.vo.room.RoomSubmitVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author liubo
* @description 针对表【room_info(房间信息表)】的数据库操作Service
* @createDate 2023-07-24 15:48:00
*/
public interface RoomInfoService extends IService<RoomInfo> {
    /**
     *  更新或者新增房间信息，主要还是观察房间id，如果id为空，则为新增，如果id不为空，则为更新
     * @param roomSubmitVo
     * @return
     */
    void saveOrUpdateRoom(RoomSubmitVo roomSubmitVo);
    /**
     * 根据条件分页查询房间列表
     * @param current
     * @param size
     * @param queryVo
     * @return
     */
    IPage<RoomItemVo> pageItem(long current, long size, RoomQueryVo queryVo);
    /**
     * 根据id获取房间详细信息
     *
     * @param id
     * @return
     */
    RoomDetailVo getDetailById(Long id);
}
